home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
m
/
maxonc++2.dms
/
maxonc++2.adf
/
MCPIncl.lha
/
streamdefs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-24
|
737b
|
34 lines
/*
Interna der Dateiverwaltung von MAXON C++
Jens Gelhar 15.11.91
*/
#ifndef INCLUDE_IO_STREAM
#define INCLUDE_IO_STREAM
struct streambuffer;
struct stream
{ unsigned Filehandle;
char UngetCh, UngetBuf;
signed char Mode, Error;
struct streambuffer *bufptr;
struct { int f_freemem:1, f_closefile:1 } flags;
};
struct streambuffer
{ stream *streamptr;
short size, fill, pos;
signed char mode, own;
int (*read)(register streambuffer *a0, register void *d2, register unsigned d3);
int (*write)(register streambuffer *a0, register void *d2, register unsigned d3);
int (*flush)(register streambuffer *a0);
int (*close)(register streambuffer *a0);
void *buf;
};
stream *allocstream(unsigned Handle);
#endif